package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserAuthenticationMapper;
import com.ruoyi.system.domain.UserAuthentication;
import com.ruoyi.system.service.IUserAuthenticationService;

/**
 * 用户认证审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-15
 */
@Service
public class UserAuthenticationServiceImpl implements IUserAuthenticationService 
{
    @Autowired
    private UserAuthenticationMapper userAuthenticationMapper;

    /**
     * 查询用户认证审核
     * 
     * @param authId 用户认证审核主键
     * @return 用户认证审核
     */
    @Override
    public UserAuthentication selectUserAuthenticationByAuthId(Long authId)
    {
        return userAuthenticationMapper.selectUserAuthenticationByAuthId(authId);
    }

    /**
     * 查询用户认证审核列表
     * 
     * @param userAuthentication 用户认证审核
     * @return 用户认证审核
     */
    @Override
    public List<UserAuthentication> selectUserAuthenticationList(UserAuthentication userAuthentication)
    {
        return userAuthenticationMapper.selectUserAuthenticationList(userAuthentication);
    }

    /**
     * 新增用户认证审核
     * 
     * @param userAuthentication 用户认证审核
     * @return 结果
     */
    @Override
    public int insertUserAuthentication(UserAuthentication userAuthentication)
    {
        return userAuthenticationMapper.insertUserAuthentication(userAuthentication);
    }

    /**
     * 修改用户认证审核
     * 
     * @param userAuthentication 用户认证审核
     * @return 结果
     */
    @Override
    public int updateUserAuthentication(UserAuthentication userAuthentication)
    {
        return userAuthenticationMapper.updateUserAuthentication(userAuthentication);
    }

    /**
     * 批量删除用户认证审核
     * 
     * @param authIds 需要删除的用户认证审核主键
     * @return 结果
     */
    @Override
    public int deleteUserAuthenticationByAuthIds(Long[] authIds)
    {
        return userAuthenticationMapper.deleteUserAuthenticationByAuthIds(authIds);
    }

    /**
     * 删除用户认证审核信息
     * 
     * @param authId 用户认证审核主键
     * @return 结果
     */
    @Override
    public int deleteUserAuthenticationByAuthId(Long authId)
    {
        return userAuthenticationMapper.deleteUserAuthenticationByAuthId(authId);
    }
}
